Filechooser - In OPEN or SAVE mode, typing a plain folder name should switch to it
authorFederico Mena Quintero <federico@novell.com>
Wed, 6 Oct 2010 17:59:44 +0000 (12:59 -0500)
committerFederico Mena Quintero <federico@novell.com>
Wed, 6 Oct 2010 18:10:16 +0000 (13:10 -0500)
commite17b9ae8ba69b870e39aa9d422f76421757869c0
tree8d644e3f1b5d3f46d6cb41f3f0b435ea51b9d98d
parente3e243688abcdf40cbf25f0841fd1cacd1886ae2
Filechooser - In OPEN or SAVE mode, typing a plain folder name should switch to it

If you type 'subfolder/' and hit Enter, the file chooser will switch you to
it.  But if you type just 'subfolder' without the trailing slash, apps would
receive *that* filename (e.g. file:///foo/bar/subfolder) as the response, and
they would likely print an error that they can't open that file (as it is
a folder).  So, we change the file chooser's current folder to that subfolder
in this case.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
gtk/gtkfilechooserdefault.c